import request from '@/utils/request'

// 查询vip等级列表
export function listVipLevels(query) {
  return request({
    url: '/system/vipLevels/list',
    method: 'get',
    params: query
  })
}

// 查询vip等级详细
export function getVipLevels(id) {
  return request({
    url: '/system/vipLevels/' + id,
    method: 'get'
  })
}

// 新增vip等级
export function addVipLevels(data) {
  return request({
    url: '/system/vipLevels',
    method: 'post',
    data: data
  })
}

// 修改vip等级
export function updateVipLevels(data) {
  return request({
    url: '/system/vipLevels',
    method: 'put',
    data: data
  })
}

// 删除vip等级
export function delVipLevels(id) {
  return request({
    url: '/system/vipLevels/' + id,
    method: 'delete'
  })
}
